import { ref } from 'vue'
import pageTalbe from '@/components/page-table'
export function usePageSearch() {
  const pageTableRef = ref<InstanceType<typeof pageTalbe>>()
  const handleReset = () => {
    pageTableRef.value?.pageTableList()
  }
  const handleSearch = (queryInfo: any) => {
    pageTableRef.value?.pageTableList(queryInfo)
  }
  return [handleSearch, pageTableRef, handleReset]
}
